package test00.test05.t06;

import java.util.function.Function;

/**
 * @Author lzp
 * @Date 2024-04-11
 */
public class test {
    public static void main(String[] args) {

        Function<String ,String> pla = (s) -> {
            String[] str = s.split(",");
            String name= str[0];
            int age = Integer.parseInt(str[1]);
            return String.valueOf(new Student(name,age+1));
        };

        System.out.println(pla.apply("zhang,18"));

    }
}
